package testdemo;

public class MyArray<E extends Number>{
    public Object[] array = new Object[10];

    public E getPos(int pos){
        return (E)this.array[pos];
    }

    public void setValue(int pos,E val){
        this.array[pos] = val;
    }

}
